<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var model_name = "/productType";
var model_title="商品类别";
var datagrid;
	$(function() {
		datagrid=$('#product_type_table').datagrid({
		 	url:model_name+'/grid',
		 	rownumbers:true,
		 	queryParams: {
				orderBy: 'order by seq'
			},
		 	columns:[[    
		        {field:'id',title:'id',width:100,checkbox:true},
		        {field:'shop_name',title:'商户',width:200},
		        {field:'pid',title:'父id',width:200,hidden:true},
		        {field:'name',title:'名称',width:200},
		        {field:'seq',title:'排序',width:200}
		    ]]
		})
		
		$("#edit_shop_id").combobox({    
		    url: '/shop/combobox', 
		    valueField:'id',
    		textField:'name',
		    width:250
		}); 
	})
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>
</head>
	<#include "/common/seach.html" />
	<@seach tableid="product_type_table">
	<td>商户</td>
	<td><input id="edit_shop_id" name="seach_s.id""></td> 
	<td>类别名</td>
	<td><input type="text" name="seachLike_a.name"></td>
	</@seach>
</@layout>